package com.xszx.dao;

import com.xszx.beans.Orders;
import com.xszx.beans.dto.OrdersDto;

import java.util.List;

public interface OrdersDao {
    List<OrdersDto> getOrders(String username, Integer state);

    void addOrders(String username, Integer id, Integer num);

    int getOrderNum(String username);

    List<Integer> getOrderState(String username);

    double getOrderMoney(String username);

    List<OrdersDto> getAllOrders();

    void updateOrderState(int id);

    List<OrdersDto> selectOrders(String name, int selectState);
}
